/**
 * Copyright &copy; 2012-2014 <a href="http://www.iframework.cn">Mas</a> All rights reserved.
 */
package com.iframework.mas.modules.accident.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.iframework.mas.common.persistence.DataEntity;

/**
 * 事故列表Entity
 * @author 余艾龙
 * @version 2016-01-30
 */
public class Accidentlocation extends DataEntity<Accidentlocation> {
	
	private static final long serialVersionUID = 1L;
	private Accident accident;		// 事故主表Id 父类
	private String accidentlocation;		// 结构化地址信息
	private String longitude;		// 经度值
	private String latitude;		// 纬度值
	private String city;		// 城市名
	private String area;		// 区县名
	private String street;		// 街道名
	private String streetnumber;		// 街道门牌号
	private String sematicdesription;		// 位置说明
	private String longitudebaidu09;		// 百度经度
	private String latitudebaidu09;		// 百度维度
	private String currentweather;		// 当前天气
	private String remark;		// remark
	
	public Accidentlocation() {
		super();
	}

	public Accidentlocation(String id){
		super(id);
	}

	public Accidentlocation(Accident accident){
		this.accident = accident;
	}

	@NotNull(message="事故主表Id不能为空")
	public Accident getAccident() {
		return accident;
	}

	public void setAccident(Accident accident) {
		this.accident = accident;
	}
	
	public String getAccidentlocation() {
		return accidentlocation;
	}

	public void setAccidentlocation(String accidentlocation) {
		this.accidentlocation = accidentlocation;
	}
	
	@Length(min=0, max=50, message="经度值长度必须介于 0 和 50 之间")
	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	
	@Length(min=0, max=50, message="纬度值长度必须介于 0 和 50 之间")
	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	
	@Length(min=0, max=5, message="城市名长度必须介于 0 和 5 之间")
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	@Length(min=0, max=10, message="区县名长度必须介于 0 和 10 之间")
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	
	@Length(min=0, max=200, message="街道名长度必须介于 0 和 200 之间")
	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}
	
	@Length(min=0, max=200, message="街道门牌号长度必须介于 0 和 200 之间")
	public String getStreetnumber() {
		return streetnumber;
	}

	public void setStreetnumber(String streetnumber) {
		this.streetnumber = streetnumber;
	}
	
	public String getSematicdesription() {
		return sematicdesription;
	}

	public void setSematicdesription(String sematicdesription) {
		this.sematicdesription = sematicdesription;
	}
	
	@Length(min=0, max=50, message="百度经度长度必须介于 0 和 50 之间")
	public String getLongitudebaidu09() {
		return longitudebaidu09;
	}

	public void setLongitudebaidu09(String longitudebaidu09) {
		this.longitudebaidu09 = longitudebaidu09;
	}
	
	@Length(min=0, max=50, message="百度维度长度必须介于 0 和 50 之间")
	public String getLatitudebaidu09() {
		return latitudebaidu09;
	}

	public void setLatitudebaidu09(String latitudebaidu09) {
		this.latitudebaidu09 = latitudebaidu09;
	}
	
	@Length(min=0, max=10, message="当前天气长度必须介于 0 和 10 之间")
	public String getCurrentweather() {
		return currentweather;
	}

	public void setCurrentweather(String currentweather) {
		this.currentweather = currentweather;
	}
	
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}